home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 23
/
Amiga Format AFCD23 (Feb 1998, Issue 107).iso
/
-seriously_amiga-
/
shareware
/
programming
/
c
/
asyncio
/
src
/
asynclib.c
< prev
next >
Wrap
C/C++ Source or Header
|
1997-12-01
|
584b
|
40 lines
#include <proto/exec.h>
#include <proto/asyncio.h>
void __regargs __autoopenfail( char * );
struct Library *AsyncIOBase;
static void *libbase;
extern long __oslibversion;
extern long __asiolibversion;
LONG
_STI_110_OpenAsyncIO( VOID )
{
AsyncIOBase = libbase = OpenLibrary( "asyncio.library", __asiolibversion );
if( AsyncIOBase == NULL )
{
__oslibversion = __asiolibversion;
__autoopenfail( "asyncio.library" );
return( 1 );
}
return( 0 );
}
VOID
_STD_110_CloseAsyncIO( VOID )
{
if( libbase )
{
CloseLibrary( libbase );
libbase = AsyncIOBase = NULL;
}
}